/**
 * PageMarket
 * BrandItemView.java
 * com.android.pagemarket.ui.widget
 * 
 */
package com.android.pagemarket.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.pagemarket.R;
import com.android.pagemarket.business.model.Paper.Brand;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-28
 * @see : 
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class BrandItemView extends LinearLayout
{
    private TextView brand;
    private TextView params;
    
    public BrandItemView(Context context)
    {
        super(context);
    }
    
    public BrandItemView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate()
    {
        super.onFinishInflate();
        
        brand  = (TextView)findViewById(R.id.brand);
        params = (TextView)findViewById(R.id.params);               
    }

    public void bindData(Brand data)
    {
        brand.setText(data.brand);
        params.setText(data.params);
    }
}
